{extend name="layout"}
{block name="detail"}

<section class="forms">
    <div class="container-fluid">
        <div class="row">
            <!-- Form Elements -->
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header d-flex align-items-center">
                        <h3 class="h4">修改充值</h3>
                    </div>
                    <div class="card-body">
                        <form class="form-horizontal" method="post" action="{:url('admin/product/saveRecharge')}" >
                            <input type="hidden" name="id" value="{$product.id}">
                            <div class="form-group row">
                                <label for="salePrice" class="col-sm-2 form-control-label">金额</label>
                                <div class="col-sm-9">
                                    <input id="salePrice" type="text" required name="salePrice"  value="{$product.salePrice}" class="form-control">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label  class="col-sm-2 form-control-label">是否上架</label>
                                <div class="col-sm-9">
                                    <input  type="radio" required name="isShow"  value="1" {if condition="$product['isShow'] eq 1"}checked{/if}>是
                                    <input  type="radio" required name="isShow" value="0" {if condition="$product['isShow'] eq 0"}checked{/if}>否
                                </div>
                            </div>

                            <div class="form-group row">
                                <div class="col-sm-4 offset-sm-3">
                                    <button type="submit" class="btn btn-primary">保存</button>
                                    <button type="reset" class="btn btn-secondary">重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

{/block}